package com.yic.module.base.convert.factory;

import java.util.*;

import com.yic.framework.common.pojo.PageResult;

import com.yic.module.base.api.factory.dto.FactoryRespDTO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;
import com.yic.module.base.controller.admin.factory.vo.*;
import com.yic.module.base.dal.dataobject.factory.FactoryDO;

/**
 * 工厂 Convert
 *
 * @author 系统管理员
 */
@Mapper
public interface FactoryConvert {

    FactoryConvert INSTANCE = Mappers.getMapper(FactoryConvert.class);

    FactoryDO convert(FactoryCreateReqVO bean);

    FactoryDO convert(FactoryUpdateReqVO bean);

    FactoryRespVO convert(FactoryDO bean);

    FactoryRespDTO convert01(FactoryDO bean);

    List<FactoryRespVO> convertList(List<FactoryDO> list);

    PageResult<FactoryRespVO> convertPage(PageResult<FactoryDO> page);

    List<FactoryExcelVO> convertList02(List<FactoryDO> list);

    List<FactorySimpleRespVO> convertList03(List<FactoryDO> list);

    List<FactoryRespDTO> convertList04(List<FactoryDO> factoryList);
}
